<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%><%-- ${fn:length(list)} --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<style>
body,td,select,input,div,form,textarea,center,option,pre,blockquote {
	font-size: 9pt;
	font-family: tahoma, 굴림;
	line-height: 160%;
	margin: 0pt;
	overflow-x: hidden
}
.title{
	font-size: 14pt;
	font-family: Comic Sans MS;
	line-height: 160%;
	margin: 0pt;
	overflow-x: hidden;
	font-weight: bolder;
	color:#ffa07a
	
}
.movie_title{
	font-size:30pt;
	font-family:고딕체;
	line-height: 160%;
	margin: 0pt;
	overflow-x: hidden
}
.my-box { 
	border:1px dashed #dcdcdc; 
	padding:10px; 
	width: 850px ;
}
.tImage{cursor:pointer}
a:link     {color:black; text-decoration:none}
a:visited  {color:black; text-decoration:none}
a:active   {color:black; text-decoration:none}
a:hover    {color:black ;text-decoration:none}
.footerInfoTable:hover{cursor:pointer}
</style>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript" src="login.js"></script>
<script type="text/javascript" src="jquery.DOMwindow.js"></script>
<script>
$(document).ready(function(){
	$(".footerInfoTable").click(function(){
		alert($(this).text());
		var menu=$(this).text();
		if(menu=="사이트맵"){
			 location.href="admin.do?command=move_sitemap";
		}
	});
});

</script> 
<div id="login" style="position: absolute; right: 166px; top: 30px;">
	<form id="loginForm">
		<input type="hidden" name="command" value="login">
		<table width="450" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="90"><input name="id"  id="id" type="text" size="10" class="top_login_input" placeholder="ID"></td>
				<td width="90"><input name="password" id="password" type="password" size="10" class="top_login_input" placeholder="PW"></td>
				<td width="70"><img id="login_img" src="img/header_login_btn.gif" border="0" style="cursor: pointer;" /></td>
				<td width="200"><a href="admin.do?command=reg_terms">회원가입</a> |
					<a href="mycinema.do?command=findId">아이디</a>/<a href="mycinema.do?command=findPass">비밀번호 찾기</a></td>
			</tr>
		</table>
	</form>
</div>
<table width="560" border=0 cellspacing=0, cellpadding=0>
	<tr align="left">
		<td colspan="7"><a href="mycinema.do?command=home_main"><img src="img/header_logo.png"></a></td>
	</tr>
	<tr>
		<td colspan="7"  height="10" ><img src='img/header_menu_under.png' border="0" ></td>
	</tr>
	<tr align="center">
		<td width="90" height="24"><img src="img/header_menu5_noad2.png" border="0"></td>
		<td width="76" height="24"><a href="movie.do?command=getBoxOffice">
		<img src="img/header_menu1.png" border="0" onMouseOver='this.src="img/header_menu1_over.png"' onMOuseOut='this.src="img/header_menu1.png"'></a></td>
		<td width="76" height="24"><a href="theater.do?command=loadLocalInfo">
		<img src="img/header_menu2.png" border="0" onMouseOver='this.src="img/header_menu2_over.png"' onMOuseOut='this.src="img/header_menu2.png"'></a></td>
		<td width="76" height="24"><a href="reservation.do?command=reservation">
		<img src="img/header_menu3.png" border="0" onMouseOver='this.src="img/header_menu3_over.png"' onMOuseOut='this.src="img/header_menu3.png"'></a></td>
		<td width="76" height="24"><a href="mycinema.do?command=getMyHistory">
		<img src="img/header_menu4.png" border="0" onMouseOver='this.src="img/header_menu4_over.png"' onMOuseOut='this.src="img/header_menu4.png"'></a></td>
		<td width="76" height="24"><div id="admin_menu"><img src="img/header_menu5_noad.png" border="0"></div></td>
		<td width="90" height="24"><img src="img/header_menu5_noad2.png" border="0"></td>
	</tr>
</table>
<c:choose>
<c:when test="${sessionScope.vo!=null }">
<script>
	var table="<table border='0' width='400' border='0' cellspacing='0' cellpadding='0'><tr>";
	table+="<td width='30' align='right'><img src='img/header_login_ok.gif' border='0'></td>";
	table+="<td width='100' align='center'>${sessionScope.vo.name }님 반갑습니다.</td>";
	table+="<td width='10' align='center'><img id='logout_img' src='img/header_logout_btn.gif' border='0' style='cursor: pointer;'/></td>";
	if("${sessionScope.vo.memberlevelinfoVO.member_level_no }"==1)
		document.getElementById("admin_menu").innerHTML="<a href='admin.do?command=main_admin'><img src='img/header_menu5.png' border='0' onMouseOver=this.src='img/header_menu5_over.png' onMOuseOut=this.src='img/header_menu5.png'></a>";
	table+="</tr></table>"; 
	document.getElementById("login").innerHTML=table;
</script>
</c:when>
<c:otherwise>
<script>
</script>
</c:otherwise>
</c:choose>
